﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace NetworkAutoBak
{
    public partial class InputPassword : Form
    {
        public InputPassword(string name, string title,string pin)
        {
            UserName = name;


            InitializeComponent();
            lbTitle.Text = title;
            tbPass.Text = pin;
            tbUserName.Text = UserName;
            tbPass.SelectionStart = tbPass.TextLength;
          
        }
        public string Pass
        { get; set; }

        public string UserName
        { get; set; }
        private void button1_Click(object sender, EventArgs e)
        {
            Pass = tbPass.Text;
            UserName = tbUserName.Text;
            this.DialogResult = DialogResult.OK;
            this.Close();
           
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void btnSkip_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Ignore;
            this.Close();
        }
    }
}
